package com.hbsc.service;

//import com.hbsc.mapper.YqtestDemoMapper;
import com.hbsc.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import java.util.Map;

/**
 * Created by xvdong on 2017-10-17.
 */
@Component
@Transactional
public class UserService {

    @Autowired
    private UserMapper mapper;

    public Map queryByOpenId(String openId){
        return mapper.queryByOpenId(openId);
    }

    public void insert(Map userInfo){
        mapper.insert(userInfo);
    }
}
